/*
 * envelop_scib_28335.h
 *
 *  Created on: 2013-6-21
 *      Author: dylan
 */

#ifndef ENVELOP_SCIB_28335_H_
#define ENVELOP_SCIB_28335_H_

void scib_init();
void scib_ctl( const unsigned short& stopBits=1,const unsigned short& parity=0,const unsigned short& charBits=8 );
void scib_bps( const unsigned long& bps=9600 );

unsigned short scib_txff_state();
unsigned short scib_rxff_state();
void scib_txff( const unsigned short& c );
void scib_rxff( unsigned short& c );

void scib_inten_tx( const unsigned short& enable = 1);
void scib_inten_rx( const unsigned short& enable = 1);
void scib_rxff_level( const unsigned short& l );

void scib_intclr_rx();

void scib_intclr_tx();


#endif /* ENVELOP_SCIB_28335_H_ */
